package sc.common.prop;

import java.io.IOException;
import java.util.Properties;

import javax.annotation.PostConstruct;

import org.springframework.core.io.support.PropertiesLoaderSupport;

public class DemoPropertiesLoader extends PropertiesLoaderSupport {

    Properties props = new Properties();

    @PostConstruct
    public void init() throws IOException {
        loadProperties(props);
        for (Object key : props.keySet()) {
            System.out.println(key + ":" + props.getProperty((String) key));
        }
        System.out.println(props);
    }

}
